package com.xiaodou.mjf.entity.fee;

import java.util.Date;

import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Transient;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xiaodou.mjf.entity.fee.base.AccountFeeBase;

/***
 *
 * AccountFee实体定义
 * @author XiaoDou.com Code Generator
 * @version 1.0
 * 2015-03-23 14:02:00
 *
 */
@Entity
@DynamicInsert @DynamicUpdate
@Cache(usage = CacheConcurrencyStrategy.READ_WRITE)
public class AccountFee extends AccountFeeBase implements Serializable{

	/**序列化标识*/
	private static final long serialVersionUID = -1754560133349436386L;

    public AccountFee(){}

    public AccountFee(String id){
        this.id = id;
    }

    @Transient
    private String accountName;
    
    //已还款
  	public static Integer REPAYMENT_STATUS_0 = 0;
  	//待还款
  	public static Integer REPAYMENT_STATUS_1 = 1;
  	//已逾期
  	public static Integer REPAYMENT_STATUS_2 = 2;
    
    @Override
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public Date getStageStartTime() {
    	return super.getStageStartTime();
    }

    @Override
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public Date getStageEndTime(){
    	return super.getStageEndTime();
    }
    
    @Override
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public Date getRepaymentDate() {
    	return super.getRepaymentDate();
    }
    
    @Override
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    public Date getLastRepaymentDate() {
    	return super.getLastRepaymentDate();
    }

	public String getAccountName() {
		return accountName;
	}

	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}
}
